home *** CD-ROM | disk | FTP | other *** search
/ Champak 125 / Vol 125 (Damaged).iso / games / rabbit_r.swf / scripts / __Packages / disney / rabbitRivalry / ui / Splash.as < prev    next >
Encoding:
Text File  |  2009-06-09  |  1.0 KB  |  44 lines

  1. class disney.rabbitRivalry.ui.Splash extends disney.rabbitRivalry.ui.Screen
  2. {
  3.    var __hasPlayedOnce;
  4.    var __isClosed;
  5.    var __isOpening;
  6.    var __mc;
  7.    var screen;
  8.    var __HAS_INTRO = true;
  9.    var __HAS_OUTRO = true;
  10.    var __OPENED_FRAME = 120;
  11.    function Splash(mc, ui, hasIntroPlayed)
  12.    {
  13.       super(mc,ui);
  14.       this.__hasPlayedOnce = hasIntroPlayed;
  15.    }
  16.    function open()
  17.    {
  18.       this.__isClosed = false;
  19.       this.__isOpening = true;
  20.       if(this.__hasPlayedOnce)
  21.       {
  22.          this.__mc.gotoAndPlay("fastIntro");
  23.       }
  24.       else
  25.       {
  26.          this.__mc.gotoAndPlay(this.__INTRO_FRAME);
  27.       }
  28.       this.__hasPlayedOnce = true;
  29.    }
  30.    function onOpened()
  31.    {
  32.       super.onOpened();
  33.       this.makeButton(this.__mc.btn_play);
  34.       this.__mc.btn_play.onRelease = function()
  35.       {
  36.          this.screen.closeThenCallback("engine","startGame");
  37.       };
  38.       this.__mc.btn_help.onRelease = function()
  39.       {
  40.          smashing.keithm.Messenger.sendMessage("engine","showHelp");
  41.       };
  42.    }
  43. }
  44.